package edu.lingnan.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @ClassName FeedbackReq
 * @Description TODO
 * @Author kang
 * @Date 2022/9/16 下午 9:16
 * @Version 1.0
 */
@Data
public class FeedbackReq {
    @ApiModelProperty("当前页码")
    @NotNull(message = "当前页码非法")
    @Min(value = 1, message = "当前页码必须大于等于1")
    private Integer currentPage;

    @ApiModelProperty("一页显示数据总量")
    @NotNull(message = "当前页总数非法")
    @Min(value = 1, message = "当前页总数必须大于等于1")
    private Integer size;
}
